package com.boot.core.result

/**
 * 返回结果枚举
 *
 * @author rankai
 * createTime 2017-04-2017/4/20 14:47
 */
enum class ResultEnum(val code: Int, val message: String) {

    SUCCESS(0, "成功"),
    USERNAME_ERROR(1101, "账号不存在"),
    PASSWORD_ERROR(1102, "密码错误"),
    NO_LOGIN(1131, "没有登陆/登陆失效"),
    OPERATION_FAILED(5000, "操作失败"),
    PARAM_ERROR(5001, "参数错误"),
    ILLEGAL_OPERATION(5002, "非法操作"),
    POLICE_NUMBER_EXIST(2001, "警员编号已经存在"),
    OLD_PASSWORD_ERROR(2002, "原密码错误"),
    REQUEST_METHOD_ERROR(5003, "请求类型错误"),
    EXCEPTION_ERROR(-1, "内部异常")
}
